ActiveButtonWidget
open class ActiveButtonWidget(titleSupplier: Supplier<Text>, width: Int, height: Int, activeSupplier: Supplier<Boolean>, pressAction: Consumer<ActiveButtonWidget>, background: ActiveButtonWidget.Background? = null) : CustomPressableWidget
A Button Widget that can supply its message and active state, and render a custom background
Author
fzzyhmstrs
Since
0.2.0
Parameters
titleSupplier
Supplier<Text> - supplies the message/label for this button
width
Int - width of the widget
height
Int - height of the widget
activeSupplier
Supplier
pressAction
Consumer
background
Background, optional - a custom background identifier. needs to be a nine-patch sprite
Inheritors
Constructors
Link copied to clipboard
constructor(title: Text, width: Int, height: Int, activeProvider: Supplier<Boolean>, pressAction: Consumer<ActiveButtonWidget>, background: ActiveButtonWidget.Background? = null)
constructor(titleSupplier: Supplier<Text>, width: Int, height: Int, activeSupplier: Supplier<Boolean>, pressAction: Consumer<ActiveButtonWidget>, background: ActiveButtonWidget.Background? = null)
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard